const configObject = require('./config.json');
const CWD = process.cwd(); //当前的工作目录
const Path = require('path');
console.log(Path);
var dev = {
    devtool: configObject.sources_map,
    entry: __dirname + "/app/main.js", //唯一入口文件
    output: {
        path: __dirname + '/public',
        publicPath: configObject.cdn_url,
        filename: 'bundle.js' //打包后输出文件的文件名
    },
    resolve: {
        root: CWD,
        modulesDirectories: ["app", "node_modules", 'components'],
        extensions: ['', '.js', '.json', '.jsx', '.tpl', '.scss', '.css', '.less'] //空字符传在这边是有用的，如果我们想require('./some.txt') 就必须用到它
    },
}
